package com.aube.mis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.aube.api.service.timeline.TimelineVoService;
import com.aube.support.ResultCode;
import com.aube.util.JsonUtils;
import com.aube.vo.timeline.TimelineResp;

@Controller
@RequestMapping("/test/timeline")
@ResponseBody
public class TimelineTestController {
	@Autowired
	@Qualifier("timeLineRemoteService")
	private TimelineVoService timeLineRemoteService;

	@RequestMapping("/list")
	public <T extends TimelineResp> String list() {
		ResultCode<List<T>> code = timeLineRemoteService.timeLineList("5119", "9924", null);
		System.out.println(JsonUtils.writeGsonWithPretty(code, true));
		return "suces";
	}
}
